package com.toonan.system.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.alibaba.dubbo.config.annotation.Service;
import com.toonan.base.matatype.Dto;
import com.toonan.system.mapper.SystemCommonMapper;
import com.toonan.system.model.Menu;
import com.toonan.system.service.ISystemCommonService;
@Component
@Service(version = "1.0.0", timeout = 60000)
public class SystemCommonServiceImpl implements ISystemCommonService {
    
	@Autowired
	private SystemCommonMapper systemCommonMapper;
	@Override
	public List<Menu> listRoleMenu(Dto pDto) {
		// TODO Auto-generated method stub
		return systemCommonMapper.listRoleMenu(pDto);
	}

	@Override
	public List<String> listRoleMenuId(String userId) {
		// TODO Auto-generated method stub
		return systemCommonMapper.listRoleMenuId(userId);
	}

}
